
#pragma once


typedef struct drv_pwm_config_t {
    bool enableInput;
    bool usePPM;
    bool useServos;
    uint16_t motorPwmRate;
    uint16_t servoPwmRate;
} drv_pwm_config_t;

void pwmInit(drv_pwm_config_t *init); // returns whether driver is asking to calibrate throttle or not
uint8_t pwmGetNumOutputChannels(void);


void pwm_out_set(uint8_t ch, int16_t v);
int16_t pwmIn(uint8_t ch);

